package com.zzh.study.utils;


import com.zzh.study.interfaces.BusinessExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ErrorCode implements BusinessExceptionAssert {
    INVALID_REQ_PARAMS("000400", "参数无效"),
    PERMISSION_DENY("000403","无权访问"),
    NO_FOUND("000404","页面不存在"),
    SERVER_EXCEPTION("000500", "服务器异常，请稍后重试"),
    SYSTEM_ERROR("000501", "系统错误，请稍后重试"),
    QUERY_TIME_INVALID("000400", "无效时间格式"),
    TYPE_MISMATCH("000400", "参数%s数据类型错误"),
    REQUIRED_REQUEST_BODY_MISSING("000400", "无法获取到提交的数据，请确认提交方式是否有误"),



    PASSWORD_MD5_FALE("200001","密码加密失败！"),
    PASSWORD_IS_ERROR("200002","密码错误！"),
    NICKNAME_IS_EXIT("200003","该账号已存在！"),
    EMAIL_IS_EXIT("200004","该邮箱已存在！"),
    ROLE_IS_NOT_EXIT("200005","角色不存在！"),
    COMPANY_IS_NOT_UPDATE("200006","企业名称不能修改！"),
    TOKEN_IS_ERROR("200008","token生成错误！"),
    ROLE_IS_NOT_DELETE("200007","企业角色不能删除！"),
    ROLE_IS_USE("200008","角色正在被使用不能删除！"),
    ADMIN_ROLE_IS_NOT_DELETE("200009","admin角色不能被删除！"),
    ADMIN_IS_NOT_UPDATE("200010","admin名称不能被修改！"),
    MAIL_INCORRECT("200019","无效的邮箱格式"),
    ACCOUNT_IS_FORBID("200020","您的账号已被禁止登录！"),



    IMPORT_FAIL("100028","批量导入失败"),
    ACCOUNT_NOT_EXIST("100101", "用户不存在"),
    LOGIN_EXCEPTION("100102", "用户不存在或密码错误"),
    ACCOUNT_EXIST("100103", "用户已存在"),
    ACCOUNT_NUMBER_EXIST("100104", "账号已存在"),
    ACCOUNT_NOT_LOGIN("100105", "用户未登录"),
    ACCOUNT_NUMBER_CAN_NOT_CHANGE("100106", "账号不允许修改"),
    ADMIN_ROLE_NOT_EXIST("100107","管理员角色不存在"),
    AUXILIARY_MATERIAL_NOT_EXIST("100108","原辅材料不存在"),
    BANNER_NOT_EXIST("100109","轮播图不存在"),
    COMBO_NOT_EXIST("100110","联合体不存在"),
    DATABASE_STATUS_NOT_EXIST("100111","资料库状态分类"),
    STANDARD_NOT_EXIST("100112","法规/标准/文献资料库不存在"),
    GREEN_PRODUC_NOT_EXIST("100113","绿色产品不存在"),
    LOAD_MATERIAL_NOT_EXIST("100114","全生命周期负荷材料不存在"),
    MANUFACTURING_ECHNIQUE_NOT_EXIST("100115","生产工艺及核心装备基数不存在"),
    DELETE_LIST_NOT_EXIST("100116","批量删除中有个已经删除了"),
    DATABASE_STATUS_NOT_DELETE("100117","资料库状态分类有关联数据"),
    DATABASE_STATUS_EXIST("100118","资料库状态分类名称已存在"),
    EXCEL_TYPE_FAIL("100119","文件类型不对"),
    VERIFICATION_NOT("100120","验证码不正确"),
    VERIFICATION_EXIT("100123","验证码不存在"),
    NICKNAME_EXIT("100121","该用户名已存在！"),
    MAIL_EXIT("100122","该邮箱已存在！"),
	;
	
    private String code;
    
    private String msg;
}
